import request from '../utils/request.js'
export const PlayMusic = params => request({
  // 获取音乐url,需要歌曲id
  url: '/song/url',
  method: 'get',
  params: params
})
export const MusicDetails = params => request({
  // 获取歌曲详情,可获得歌曲id
  url: '/song/detail',
  method: 'get',
  params: params
})

export const MusicStatus = params => request({
  // 音乐是否可用
  method: 'get',
  url: "/check/music",
  params: params
})
export const MusicDownload = params => request({
  // 获取客户端下载url,报错404
  method: 'get',
  url: '/song/download/url',
  params
})

export const MvPlay = params => request({
  // mv 地址
  method: 'get',
  url: '/mv/url',
  params
})
export const GetLyric = params => request({
  // 获取歌词
  method: 'get',
  url: '/lyric',
  params
})